package com.rmt.www.dao;

import java.util.List;

import javax.mail.search.FromStringTerm;

import com.rmt.www.vo.Traceability;
import com.rmt.www.vo.TraceabilityV2;

public interface TraceabilityDaoV2 {
	
	public void insertTraceability(TraceabilityV2 newTraceability);
	
	public void updateTraceability(TraceabilityV2 newTraceability);
	
	public void deleteTraceabilityByTId(int tid);
	
	public void deleteTraceabilityByFromIdAndToId(String fromtable, int fromId, String totable, int toId);
	
	public List<TraceabilityV2> getTraceabilitiesByFromId(String fromtable, int fromid);
	
	public List<TraceabilityV2> getTraceabilitiesByToId(String totable, int toid);
	
	public boolean determinDependencyByFromAndToId(String fromtable, int fromId, String totable, int toId);
}
